package org.huzhp.console.config;

import org.huzhp.oauth.client.shiro.Oauth2Config;
import org.springframework.context.annotation.Configuration;

import java.util.Map;

/**
 * @Description: 定义oauth配置类
 * @Author: huzp
 * @CreateDate: 2020/4/7 17:06
 * @Version: 1.0
 */
@Configuration
public class OauthShiroConfig extends Oauth2Config {

    @Override
    protected void addExtendUrlFilter(Map<String, String> filterChainDefinitionMap) {
        filterChainDefinitionMap.put("/registry/machine", "anon");
    }
}
